<?php    
    $c = new Criteria();
    $metricas = MetricaPeer::doSelect($c);
    if ($opcion->getMetricaId()) {
        $metrica_selected = $opcion->getMetricaId();
    } else if (count($metricas)>0){
        $metrica_selected = $metricas[0]->getId();
    } else {
        $metrica_selected = "";
    }

    echo select_tag('opcion[metrica_id]',objects_for_select($metricas,'getId','getDescripcion',$metrica_selected,'include_custom=Seleccione'));
    
?>
